package com.ruoyi.email.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 邮件 对象 email_letter
 * 
 * @author cc
 * @date 2023-03-24
 */
public class EmailLetter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 邮件编号 */
    private Long emailId;

    /** 邮件名称 */
    @Excel(name = "邮件名称")
    private String emailName;

    /** 类型 */
    @Excel(name = "类型")
    private String emailType;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date emailTime;

    /** 发件人邮箱 */
    @Excel(name = "发件人邮箱")
    private String userSend;

    /** 收件人邮箱 */
    @Excel(name = "收件人邮箱")
    private String userReception;

    /** 附件 */
    @Excel(name = "附件")
    private String emailFile;

    /** 文本 */
    @Excel(name = "文本")
    private String emailText;

    /** 查看状态 */
    @Excel(name = "查看状态")
    private Long emailCheck;

    /** 草稿状态 */
    @Excel(name = "草稿状态")
    private Long emailDraft;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setEmailId(Long emailId) 
    {
        this.emailId = emailId;
    }

    public Long getEmailId() 
    {
        return emailId;
    }
    public void setEmailName(String emailName) 
    {
        this.emailName = emailName;
    }

    public String getEmailName() 
    {
        return emailName;
    }
    public void setEmailType(String emailType) 
    {
        this.emailType = emailType;
    }

    public String getEmailType() 
    {
        return emailType;
    }
    public void setEmailTime(Date emailTime) 
    {
        this.emailTime = emailTime;
    }

    public Date getEmailTime() 
    {
        return emailTime;
    }
    public void setUserSend(String userSend) 
    {
        this.userSend = userSend;
    }

    public String getUserSend() 
    {
        return userSend;
    }
    public void setUserReception(String userReception) 
    {
        this.userReception = userReception;
    }

    public String getUserReception() 
    {
        return userReception;
    }
    public void setEmailFile(String emailFile) 
    {
        this.emailFile = emailFile;
    }

    public String getEmailFile() 
    {
        return emailFile;
    }
    public void setEmailText(String emailText) 
    {
        this.emailText = emailText;
    }

    public String getEmailText() 
    {
        return emailText;
    }
    public void setEmailCheck(Long emailCheck) 
    {
        this.emailCheck = emailCheck;
    }

    public Long getEmailCheck() 
    {
        return emailCheck;
    }
    public void setEmailDraft(Long emailDraft) 
    {
        this.emailDraft = emailDraft;
    }

    public Long getEmailDraft() 
    {
        return emailDraft;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("emailId", getEmailId())
            .append("emailName", getEmailName())
            .append("emailType", getEmailType())
            .append("emailTime", getEmailTime())
            .append("userSend", getUserSend())
            .append("userReception", getUserReception())
            .append("emailFile", getEmailFile())
            .append("emailText", getEmailText())
            .append("emailCheck", getEmailCheck())
            .append("emailDraft", getEmailDraft())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
